﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebPortal.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>
        <asp:Literal ID="Literal6" runat="server" Text="<%$Resources:lang,Default_ProjectTitle%>" />
    </title>
    <script src="Js/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
        function addfavorite() {
            if (document.all) {
                window.external.addFavorite('Default.aspx', '收藏夹');
            }
            else if (window.sidebar) {
                window.sidebar.addPanel('Ultimus BPM', 'Default.aspx', "");
            }
        } 
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="topbar">
        <div class="wrapper1">
            <div class="left lh">
                <%=FULL_NAME%><span class="pr10"></span><asp:Literal ID="Literal2" runat="server"
                    Text="<%$Resources:lang,Default_Welcome%>" />
                <a href="" >
                    <asp:Literal ID="Literal3" runat="server" Text=" " />
                </a>
            </div>
            <div class="right lh">
                <a href="" id="LinkEdoc2" runat="server" target="_blank">原流程系统查询及待办</a>
                <%-- <span class="pl10 pr10">|</span>--%>
                <%-- <a href="javascript:addfavorite();"><asp:Literal ID="Literal4" runat="server" Text="<%$Resources:lang,Default_Fav%>" /> </a>--%>
                <span class="pl10 pr10">|</span> <a href="http://edoc.goldwind.org/#doc/fld/188434" target="_blank">
                    <asp:Literal ID="Literal5" runat="server" Text="<%$Resources:lang,Default_Help%>" />
                </a>
            </div>
        </div>
    </div>
    <div class="head wrapper1">
        <a href="Default.aspx">
            <img src="Images/Goldwind.png" alt="Logo" style="height: 51px; width: 212px" /></a>
        <img src="Images/split.png" class="pl10 pr10" />
        <span class="logotext">
            <asp:Literal ID="Literal1" runat="server" Text="<%$Resources:lang,Default_ProjectTitle%>" /></span>
        <span>&nbsp;&nbsp; </span>
    </div>
    <div class="navmod ">
        <ul class="nav clearfix wrapper" id="nav">
            <asp:Repeater ID="rptNav" runat="server">
                <ItemTemplate>
                    <li class="<%#Eval("Ext30") %>"><a href="Default.aspx?id=<%#Eval("ResourceId") %>"
                        target="<%#Eval("Ext02") %>"><span>
                            <%#Eval(Resources.lang.ResourceNameField) %></span></a></li>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
    </div>
    <div class="wrapper1">
        <table>
            <tr valign="top">
                <td>
                    <div class="modbox" style="width: 200px" id="divMenu" runat="server">
                        <asp:Repeater ID="rptMenu" runat="server" OnItemDataBound="rptMenu_ItemDataBound">
                            <ItemTemplate>
                                <div class="mod_hd">
                                    <h3>
                                        <%#Eval(Resources.lang.ResourceNameField) %></h3>
                                </div>
                                <div>
                                    <ul class="menulist">
                                        <asp:Repeater ID="rptChildMenu" runat="server">
                                            <ItemTemplate>
                                                <li><a href="<%#Eval("Ext01") %>" target="<%#Eval("Ext02") %>" title=" <%#Eval(Resources.lang.ResourceNameField) %>">
                                                    <%#Eval(Resources.lang.ResourceNameField) %></a></li>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </ul>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                </td>
                <td width="100%">
                    <div class="pl10">
                        <iframe id="frmContent" src="<%=DEFAULT_URL %>" name="content" scrolling="auto" frameborder="0"
                            width="100%" height="<%=DEFAULT_HEIGHT %>"></iframe>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div class="wrapper" align="center">
        <hr />
        <p>
            <asp:Literal ID="Literal7" runat="server" Text="<%$Resources:lang,Copyright%>"></asp:Literal>
        </p>
    </div>
    <div class="hide">
        <asp:HiddenField ID="hidId" runat="server" />
    </div>
    </form>
</body>
<script type="text/javascript">
    function menuClick(ele, url, menuname, height) {
        $(".item").attr("class", "item");
        $(ele).parent().attr("class", "item active");
        var iframe = document.getElementById("frmContent");
        menuname = encodeURIComponent(menuname);
        if (url.indexOf("?") > 0) {
            url = url + "&menuname=" + menuname;
        }
        else {
            url = url + "?menuname=" + menuname;
        }
        iframe.contentWindow.location.href = url;
        if (height > 0) {
            iframe.height = height;
        }
        else {
            iframe.height = 600;
        }
    }
</script>
</html>
